package com.alex.entity;

import java.util.HashSet;
import java.util.Set;

/**
 * Tip entity. @author MyEclipse Persistence Tools
 */

public class Tip implements java.io.Serializable {

	// Fields

	private Integer tipid;
	private String title;
	private String content;
	private String publishtime;
	private Integer userid;
	private Integer boardid;
	private String realfile;
	private String makefile;
	private User user;
	private Board board;
	private Set<Reply> replys = new HashSet<Reply>();
	// Constructors
	
	public User getUser() {
		return user;
	}

	public Set<Reply> getReplys() {
		return replys;
	}

	public void setReplys(Set<Reply> replys) {
		this.replys = replys;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Board getBoard() {
		return board;
	}

	public void setBoard(Board board) {
		this.board = board;
	}

	/** default constructor */
	public Tip() {
	}

	/** minimal constructor */
	public Tip(String title, String content, Integer userid, Integer boardid) {
		this.title = title;
		this.content = content;
		this.userid = userid;
		this.boardid = boardid;
	}
	
	

	/** full constructor */
	public Tip(String title, String content, String publishtime,
			Integer userid, Integer boardid, String realfile, String makefile) {
		this.title = title;
		this.content = content;
		this.publishtime = publishtime;
		this.userid = userid;
		this.boardid = boardid;
		this.realfile = realfile;
		this.makefile = makefile;
	}

	// Property accessors

	public Integer getTipid() {
		return this.tipid;
	}

	public void setTipid(Integer tipid) {
		this.tipid = tipid;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getPublishtime() {
		return this.publishtime;
	}

	public void setPublishtime(String publishtime) {
		this.publishtime = publishtime;
	}

	public Integer getUserid() {
		return this.userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	public Integer getBoardid() {
		return this.boardid;
	}

	public void setBoardid(Integer boardid) {
		this.boardid = boardid;
	}

	public String getRealfile() {
		return this.realfile;
	}

	public void setRealfile(String realfile) {
		this.realfile = realfile;
	}

	public String getMakefile() {
		return this.makefile;
	}

	public void setMakefile(String makefile) {
		this.makefile = makefile;
	}

}